package world.ztomorrow.push.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import world.ztomorrow.push.dao.po.BookInfo;

import java.util.List;

@FeignClient("yc-novel")
public interface NovelClient {

    @GetMapping("/rank")
    List<BookInfo> listRankBooks(@RequestParam("orderKey") String orderKey);

    @PostMapping("/books")
    List<BookInfo> listHomeBooks(@RequestBody List<Long> ids);


}
